package data.framework.web.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

public class MyHandlerExceptionResolver {
	public ModelAndView resolveException(HttpServletRequest request,
			HttpServletResponse response, Object handler, Exception ex) {
		//将来在这里可以针对异常做更多处理
		ex.printStackTrace();
		
		return new ModelAndView("forward:/showError.jsp","exception",ex);
	}
}
